<!doctype html>
<html>
<head>
    <title>标准分类列表</title>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link href="<?php echo URLPRE;?>static/admin/css/admin_full.css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/jquery/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/jquery.validate.1.9.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/jquery.metadata.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/messages_cn.js"></script>
    <link href="<?php echo URLPRE;?>static/public/Lib/artDialog/skins/default.css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/artDialog/jquery.artDialog.source.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/artDialog/plugins/iframeTools.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/admin/js/common.js"></script>
</head>
<body>
<div class="wrap J_check_wrap">
    <?php if(!$tb_is_login):?>
        <div class="h_a">尚未授权,<a href="<?php echo site_url('oauth/tb_oauth');?>">点击授权</a></div>
        <?php else:?>
        <div class="h_a">你好，<?php echo @$tb_nick ;?>！欢迎使用此应用,<a href="<?php echo site_url('oauth/tb_oauth');?>" target="_blank">切换账号</a></div>
    <?php endif ;?>
    <div class="h_a">功能说明</div>
    <div class="prompt_text">
        标准分类列表
    </div>

    <?php if(empty($list)){ ?>
        <div class="not_content_mini"><i></i>还没有分类！</div>
    <?php }else{?>
        <div class="table_list">
            <table width="100%">
                <thead>
                <tr>
                    <td>分类ID</td>
                    <td>分类名</td>
                    <td>是否有子类</td>
                </tr>
                </thead>
                <?php foreach ($list as $k => $v):?>
                    <tr>
                        <td><?php echo $v['cid'];?></td>
                        <td><?php echo $v['name'];?></td>
                        <td><?php if($v['is_parent']):?>是<?php else:?>否<?php endif; ?></td>
                    </tr>
                <?php endforeach ;?>
            </table>
        </div>

    <?php }?>
</div>
</body>
</html>